<template>
    <div>
        <div id="parent" @click="gb()">
            <div id="child" @click.stop="gb1()">
            </div>
        </div>
    </div>
</template>

<script>
export default {
    methods:{
        gb(){
            alert('这是外边框')
        },
    gb1(){
        alert('这是内边框')
        }
    },
}
</script>

<style scoped>
#parent{
     width: 200px;
    height: 200px;
    border: 1px solid red;
}
#child{
    width: 100px;
    height: 100px;
    border: 1px solid pink; 
    margin: 50px;
}
</style>